﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="CategoryManagement.aspx.cs" Inherits="Admin_CategoryManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type='text/javascript' src='js/category.js'></script>
  <div id="container">
    <div>Category Management</div>
    <div id="listCatedory">
        <asp:GridView ID="grvCategory" runat="server" 
         CellPadding="4" ForeColor="#333333" GridLines="None" 
            AutoGenerateDeleteButton="True" 
            onrowediting="grvCategory_RowEditing" AllowPaging="True" 
            AutoGenerateSelectButton="True" onrowdeleting="grvCategory_RowDeleting" 
            onselectedindexchanged="grvCategory_SelectedIndexChanged" 
            onselectedindexchanging="grvCategory_SelectedIndexChanging" 
            onpageindexchanging="grvCategory_PageIndexChanging">
     <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:TemplateField HeaderText="Index">
                    <ItemTemplate>
                        <Center><%# Container.DataItemIndex + 1 %></Center>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
     <EditRowStyle BackColor="#999999" />
     <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
     <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
     <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
     <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
     <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
     <SortedAscendingCellStyle BackColor="#E9E7E2" />
     <SortedAscendingHeaderStyle BackColor="#506C8C" />
     <SortedDescendingCellStyle BackColor="#FFFDF8" />
     <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
     </asp:GridView>
        Số Lượng Sản Phẩm là:
        <asp:Label ID="lbSoLuongCategory" runat="server"></asp:Label>
     <br />
    </div>
    <div id="addCategory">
        <span>Add New Category</span>
        <br />
        <br />
        <asp:Label ID="Label3" runat="server" Text="ID"></asp:Label>
        <asp:TextBox ID="txtID" runat="server" ReadOnly="True"></asp:TextBox>

        <br />
        <asp:Label ID="Label1" runat="server" Text="Category Name"></asp:Label>
        <asp:TextBox ID="txtAddCategory" runat="server"></asp:TextBox><div id="txterror"></div>
        <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Add" />

        <asp:Button ID="btnEdit" runat="server" onclick="btnEdit_Click1" Text="Edit" />
        <asp:Button ID="btnCancel" runat="server" onclick="btnCancel_Click" 
            Text="Cancel" />

    </div>
    <div id="editCategory">
    </div>
  </div>
</asp:Content>

